package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysTopicCommentMapper;
import com.ruoyi.system.domain.SysTopicComment;
import com.ruoyi.system.service.ISysTopicCommentService;
import com.ruoyi.common.core.text.Convert;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-10-30
 */
@Service
public class SysTopicCommentServiceImpl implements ISysTopicCommentService 
{
    @Autowired
    private SysTopicCommentMapper sysTopicCommentMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param commentid 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public SysTopicComment selectSysTopicCommentByCommentid(Long commentid)
    {
        return sysTopicCommentMapper.selectSysTopicCommentByCommentid(commentid);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param sysTopicComment 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<SysTopicComment> selectSysTopicCommentList(SysTopicComment sysTopicComment)
    {
        return sysTopicCommentMapper.selectSysTopicCommentList(sysTopicComment);
    }
    @Override
    public List<SysTopicComment> selectSysTopicCommentList1(SysTopicComment sysTopicComment)
    {
        return sysTopicCommentMapper.selectSysTopicCommentList1(sysTopicComment);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param sysTopicComment 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertSysTopicComment(SysTopicComment sysTopicComment)
    {
        return sysTopicCommentMapper.insertSysTopicComment(sysTopicComment);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param sysTopicComment 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateSysTopicComment(SysTopicComment sysTopicComment)
    {
        return sysTopicCommentMapper.updateSysTopicComment(sysTopicComment);
    }

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param commentids 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteSysTopicCommentByCommentids(String commentids)
    {
        return sysTopicCommentMapper.deleteSysTopicCommentByCommentids(Convert.toStrArray(commentids));
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param commentid 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteSysTopicCommentByCommentid(Long commentid)
    {
        return sysTopicCommentMapper.deleteSysTopicCommentByCommentid(commentid);
    }
}
